import { GTextFormat } from "../../../../common/GTextFormat";
//class LabelToolTip
    
    export  class LabelToolTip /* flash.display.Sprite */
    {
        constructor(arg1: string="")
        {
            
            this._toolTipStr = arg1;
            this.init();
            return;
        }

        public set data(arg1: string)
        {
            this._toolTipStr = arg1;
            this.init();
            return;
        }

        /* internal  */init(): void
        {
            if (!this.label) 
            {
                this.label = new Object /* flash.text.TextField */();
            }
            addChild(this.label);
            this.label.defaultTextFormat = new GTextFormat("", null, 16777215, null, null, null, null, null, null, null, null, null, null);
            this.label.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this.label.multiline = true;
            this.label.htmlText = this._toolTipStr;
            return;
        }

        public dispose(): void
        {
            while (this.numChildren) 
            {
                removeChildAt(0);
            }
            return;
        }

        /* internal */ /* var */label: Object /* flash.text.TextField */;

        /* internal */ /* var */_toolTipStr: string;
    }
